package com.mapper;

import com.entity.DinerOrder;
import com.entity.OrderSummary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface DinerOrderMapper {
    public List<DinerOrder> getDinerOrderInfo(@Param("id") Integer id);
    public int insertDinrORderInfo(DinerOrder dinerOrder);
    public List<DinerOrder> getDinerOrderInfoStatus();

    /**
     * 修改订单状态
     * */
    public int UpdateDinerrOrderState(DinerOrder dinerOrder);

    public List<DinerOrder> getDinerOrderThisInfo(@Param("id") Integer id,@Param("orderId") Integer orderId);


    public List<DinerOrder> getDinerOrderpayInfo();


    public List<DinerOrder> getDinerOrderHistoryInfo(@Param("flag") Integer flag,@Param("createBy") String createBy);


    public List<DinerOrder> getDinerORderInfo(@Param("orderId") Integer orderId);

    List<OrderSummary> getOrderSummary(@Param("goods_name") String goods_name,@Param("create_time") String create_time);


}